package com.alongstudio.account.service;

import java.util.List;
import java.util.Map;

import com.alongstudio.account.commons.exception.BusinessException;
import com.alongstudio.account.vo.CategoryVo;


public interface ICategoryService {

	Map getSubCategoryMapForSettings(String userId)throws BusinessException;
	
	List<CategoryVo> getFirstClassCategory(String userId, String type) throws BusinessException;
	
	List<CategoryVo> getSubCategoryByParentId(String parentId) throws BusinessException;
	
	String createCategory(CategoryVo cate)throws BusinessException;
	/**
	 * 部分更新。
	 * @param cate
	 * @return
	 * @throws BusinessException
	 */
	boolean updateCategory(CategoryVo cate) throws BusinessException;
	
	boolean deleteCategory(String id) throws BusinessException;
	/**
	 * 根据子分类id，查找同级的分类数据
	 * @return
	 * @throws BusinessException
	 */
	List<CategoryVo> findSameClassCategoryBySubId(String subId) throws BusinessException;
	
}
